package Work;

import java.io.*;

public class AAA {
    public static void main(String[] args) throws IOException {
        FileInputStream ios =new FileInputStream("dsb.png");
        BufferedInputStream iis =new BufferedInputStream(ios);
        FileOutputStream bb =new FileOutputStream("dsb_cp25.png");
        BufferedOutputStream cc=new BufferedOutputStream(bb);
        long stat=System.currentTimeMillis();
        int d;
        while ((d= iis.read())!=-1){
            cc.write(d);
        }
        long end =System.currentTimeMillis();
        System.out.println("ok"+(end-stat)+"ms");
        iis.close();
        cc.close();


    }
}
